html {
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
*::before, *::after {
  box-sizing: inherit;
}

body {
  background-color: #ff7f2e;
  font-family: "Concert One", cursive;
  overflow: hidden;
}

/*/////////////////// rules */
.text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(19, 36, 44, 0.1);
  font-size: 30em;
  text-align: center;
  top: 40%;
}

.container .caveman .leg .foot .fingers::after, .container .caveman .leg .foot .fingers, .container .caveman .leg .foot::before, .container .caveman .leg .foot::after {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #eab08c;
  bottom: 0;
  transform-origin: bottom;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
}
.container::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 12px;
  background: rgba(19, 36, 44, 0.1);
  border-radius: 12px;
  left: 80px;
  bottom: 40px;
  z-index: -1;
  animation: shadow_animate 1.2s 0.1s infinite cubic-bezier(0.55, 0.01, 0.16, 1.34);
}
.container .caveman {
  position: absolute;
  width: 250px;
  height: 300px;
}
.container .caveman .head {
  width: 65px;
  height: 140px;
  background: #13242c;
  border-radius: 50px;
  position: absolute;
  top: 25px;
  left: 60px;
  animation: head-animate 1.2s infinite cubic-bezier(0.55, 0.01, 0.16, 1.34);
}
.container .caveman .head::before, .container .caveman .head::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 20px;
  background: #13242c;
  border-radius: 10px;
  top: -8px;
}
.container .caveman .head::before {
  left: 30px;
  transform: rotate(-20deg);
}
.container .caveman .head::after {
  left: 35px;
  transform: rotate(20deg);
}
.container .caveman .head .eye {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 16px;
  background: #eab08c;
  border-radius: 50px;
  top: 40px;
  left: 45%;
}
.container .caveman .head .eye::before, .container .caveman .head .eye::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #13242c;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  animation: eye-animate 1.2s infinite cubic-bezier(0.55, 0.01, 0.16, 1.34);
}
.container .caveman .head .eye::before {
  right: 9px;
}
.container .caveman .head .eye::after {
  left: 9px;
}
.container .caveman .head .eye .nose {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 35px;
  background: #d9766c;
  border-radius: 10px;
  top: 12px;
  left: 45%;
  border-left: 8px solid rgba(19, 36, 44, 0.1);
}
.container .caveman .shape {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  top: 70px;
}
.container .caveman .shape .circle {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.container .caveman .shape .circle::before, .container .caveman .shape .circle::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.container .caveman .shape .circle::before {
  left: 50px;
  top: 45px;
}
.container .caveman .shape .circle::after {
  left: 50px;
  top: 10px;
}
.container .caveman .shape .circle:nth-child(1) {
  left: -12px;
  top: 80px;
}
.container .caveman .shape .circle:nth-child(2) {
  right: 10px;
  top: 0;
  transform: rotate(90deg);
}
.container .caveman .shape .circle:nth-child(2)::after {
  left: 65px;
  top: 10px;
}
.container .caveman .shape .circle:nth-child(2)::before {
  display: none;
}
.container .caveman:nth-child(1) {
  right: 20px;
}
.container .caveman:nth-child(1) .shape {
  background-color: #d13433;
}
.container .caveman:nth-child(1) .shape .circle {
  background-color: #932422;
}
.container .caveman:nth-child(1) .shape .circle::after, .container .caveman:nth-child(1) .shape .circle::before {
  background-color: #932422;
}
.container .caveman:nth-child(1) .head {
  animation-delay: 0.6s;
}
.container .caveman:nth-child(1) .head .eye::after, .container .caveman:nth-child(1) .head .eye::before {
  animation-delay: 0.6s;
}
.container .caveman:nth-child(2) {
  left: 20px;
  transform: rotateY(180deg);
}
.container .caveman:nth-child(2) .shape {
  background-color: #932422;
}
.container .caveman:nth-child(2) .shape .circle {
  background-color: #d13433;
}
.container .caveman:nth-child(2) .shape .circle::after, .container .caveman:nth-child(2) .shape .circle::before {
  background-color: #d13433;
}
.container .caveman:nth-child(2) .arm-right {
  animation-delay: 0.6s;
}
.container .caveman .arm-right {
  z-index: 1;
  position: absolute;
  top: 80px;
  left: 135px;
  width: 60px;
  height: 180px;
  background: #eab08c;
  border-radius: 50px;
  transform-origin: 30px 30px;
  border-left: 8px solid rgba(19, 36, 44, 0.1);
  animation: arm-animate 1.2s infinite cubic-bezier(0.55, 0.01, 0.16, 1.34);
}
.container .caveman .arm-right .club {
  border-bottom: 110px solid #601513;
  border-inline: 10px solid transparent;
  width: 40px;
  position: absolute;
  top: 120px;
  left: -60px;
  transform: rotate(70deg);
}
.container .caveman .arm-right .club::before, .container .caveman .arm-right .club::after {
  content: "";
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background-color: #601513;
}
.container .caveman .arm-right .club::after {
  top: -10px;
  width: 20px;
  height: 20px;
}
.container .caveman .arm-right .club::before {
  top: 90px;
  margin-left: -50%;
  width: 40px;
  height: 40px;
}
.container .caveman .leg {
  position: absolute;
  top: 200px;
  width: 10px;
  height: 55px;
  border-radius: 10px;
}
.container .caveman .leg::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: -5px;
  top: 15px;
}
.container .caveman .leg .foot {
  position: absolute;
  top: 30px;
  left: -38px;
  width: 30px;
  height: 25px;
  border-radius: 25px 25px 0 0;
}
.container .caveman .leg .foot::before, .container .caveman .leg .foot::after {
  content: "";
  position: absolute;
}
.container .caveman .leg .foot::after {
  left: -6px;
}
.container .caveman .leg .foot::before {
  left: 8px;
  transform: scale(0.6);
}
.container .caveman .leg .foot .fingers {
  position: absolute;
  left: 15px;
  transform: scale(0.6);
}
.container .caveman .leg .foot .fingers::after {
  content: "";
  position: absolute;
  left: 11px;
}
.container .caveman .leg:nth-of-type(1) {
  left: 95px;
  background-color: #b2524d;
}
.container .caveman .leg:nth-of-type(1)::after {
  background-color: #b2524d;
}
.container .caveman .leg:nth-of-type(1) .foot {
  background-color: #b2524d;
}
.container .caveman .leg:nth-of-type(1) .foot::after {
  background-color: #b2524d;
}
.container .caveman .leg:nth-of-type(1) .foot::before {
  display: none;
}
.container .caveman .leg:nth-of-type(2) {
  left: 115px;
  background-color: #d9766c;
}
.container .caveman .leg:nth-of-type(2)::after {
  background-color: #d9766c;
}
.container .caveman .leg:nth-of-type(2) .foot {
  background-color: #d9766c;
}

.link {
  position: absolute;
  bottom: 200px;
  opacity: 0.2;
  display: flex;
  align-items: center;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.5s;
  cursor: pointer;
}
.link:hover {
  opacity: 1;
}
.link span {
  font-size: 35px;
  margin: 0;
  margin-left: 5px;
}

@keyframes arm-animate {
  to {
    transform: rotate(-1turn);
  }
}
@keyframes head-animate {
  0%, 42%, 100% {
    top: 25px;
  }
  45% {
    top: 50px;
  }
}
@keyframes eye-animate {
  0%, 42%, 100% {
    height: 5px;
  }
  45% {
    height: 1px;
  }
}
@keyframes shadow_animate {
  0%, 50%, 100% {
    width: 350px;
    left: 80px;
  }
  25% {
    width: 450px;
    left: 80px;
  }
  75% {
    width: 450px;
    left: 0px;
  }
}